<!DOCTYPE html>
<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
        <style type="text/css" media="screen">

        #nav {
            margin-top:20px;
            margin-left:30px;
            width:228px;
            float:left;

        }
        .homePagePanel * {
            margin:0px;
        }
        .homePagePanel .panelBody ul {
            list-style-type:none;
            margin-bottom:10px;
        }
        .homePagePanel .panelBody h1 {
            text-transform:uppercase;
            font-size:1.1em;
            margin-bottom:10px;
        }
        .homePagePanel .panelBody {
            background: url(images/leftnav_midstretch.png) repeat-y top;
            margin:0px;
            padding:15px;
        }
        .homePagePanel .panelBtm {
            background: url(images/leftnav_btm.png) no-repeat top;
            height:20px;
            margin:0px;
        }

        .homePagePanel .panelTop {
            background: url(images/leftnav_top.png) no-repeat top;
            height:11px;
            margin:0px;
        }
        h2 {
            margin-top:15px;
            margin-bottom:15px;
            font-size:1.2em;
        }
        #pageBody {
            margin-left:280px;
            margin-right:20px;
        }
        </style>
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
        </div>
        <div id="grailsLogo"><a href="http://localhost:8088/WineXpressClient/"><img src="${resource(dir:'images',file:'logo.png')}" alt="Winexpress" border="0" /></a></div>
        
        <div class="search_bar">
            <g:form name="searchForm" controller="contentManagement" action="searchProductsSubmit">
<!--              <fieldset class="search">-->
<!--                  <input class="tbox" type="text" name="searchKey" value="Enter Search Key..." onfocus="if(this.value=='Enter Search Key...')this.value=''"/>-->
                  <input type="text" name="productType"/>
                  <button class="btn" title="Submit Search">Search</button>
<!--              </fieldset>-->
            </g:form>
        </div>
        
        
        <div id="menubar">
            <div class="main_menu">
                <ul>
<!--                    <li><a href="http://localhost:8088/WineXpressClient/aboutUs">About Us</a></li>-->
                    <li><a href="http://localhost:8088/WineXpressClient/product/wine">Wine Catalogue</a></li>
<!--                    <li><a href="http://localhost:8088/WineXpressClient/product/gift">Gift Catalogue</a></li>
                    <li><a href="http://localhost:8088/WineXpressClient/product/hamper">Hamper Catalogue</a></li>-->
<!--                    <li><a href="http://localhost:8088/WineXpressClient/contactUs">Contact Us</a></li>-->
                    
                </ul>
            </div>
        </div>
        
        <div class="login">
            <g:if test="${session.customerId}">
              Welcome ${session.customerName}! | <g:link controller="login" action="memberLogout">Logout</g:link>
              <br/><br/>
<a href="http://localhost:8088/WineXpressClient/shoppingCartRetrieve">View Cart</a>
            </g:if>
        </div>
        <br/>
        <br/>
<!--        <div class="cart">
            
        </div>-->
        
        <div id="nav">
            <div class="homePagePanel">
                <div class="panelTop"></div>
                <div class="panelBody">
                  
                  <h1>Account Management</h1>
                  <g:if test="${!session.customerId}">
                      <a href="http://localhost:8088/WineXpressClient/memberRegistration">Member Registration</a><br/>
                      <a href="http://localhost:8088/WineXpressClient/memberLogin">Member Login</a>
                  </g:if>
                  
                  <g:if test="${session.customerId}">
                      <a href="http://localhost:8088/WineXpressClient/memberInfoManagement">Manage Account</a><br/>
                  </g:if>
                  
                  <g:if test="${session.customerUsername == 'admin'}">
                      <br/><br/>
                      <h1>Administrative</h1>
                      <a href="http://localhost:8088/WineXpressClient/accountStatusActivation">Account Status Activation</a><br/>
                      
                      <br/><br/>
                      <h1>Wine Type Management</h1>
                      <a href="http://localhost:8088/WineXpressClient/wineTypeCreate">Create Wine Type</a><br/>
                      <a href="http://localhost:8088/WineXpressClient/wineTypeRetrieve">Manage Wine Types</a><br/>
<!--                      <a href="http://localhost:8088/WineXpressClient/wineTypeDelete">Delete Wine Type</a>-->
                      
                      <br/><br/>
                      <h1>Wine Varietal Management</h1>
                      <a href="http://localhost:8088/WineXpressClient/wineVarietalCreate">Create Wine Varietal</a><br/>
                      <a href="http://localhost:8088/WineXpressClient/wineVarietalRetrieve">Manage Wine Varietals</a><br/>
<!--                      <a href="http://localhost:8088/WineXpressClient/wineVarietalDelete">Delete Wine Varietal</a>-->
                      
                      <br/><br/>
                      <h1>Wine Region Management</h1>
                      <a href="http://localhost:8088/WineXpressClient/wineRegionCreate">Create Wine Region</a><br/>
                      <a href="http://localhost:8088/WineXpressClient/wineRegionRetrieve">Manage Wine Regions</a><br/>
<!--                      <a href="http://localhost:8088/WineXpressClient/wineRegionDelete">Delete Wine Region</a>-->
                      

                      <br/><br/>
                      <h1>Product Type Management</h1>
                      <a href="http://localhost:8088/WineXpressClient/productTypeCreate">Create Product Type</a><br/>
                      <a href="http://localhost:8088/WineXpressClient/productTypeRetrieve">Manage Product Types</a><br/>
                      
                      
                      <br/><br/>
                      <h1>Wine Product Management</h1>
                      <a href="http://localhost:8088/WineXpressClient/wineProductCreate">Create Wine</a><br/>
                      <a href="http://localhost:8088/WineXpressClient/wineProductRetrieve">Manage Wines</a><br/>
<!--                      <a href="http://localhost:8088/WineXpressClient/wineProductDelete">Delete Wine</a>-->
                  </g:if>
                </div>
                <div class="panelBtm"></div>
            </div>
        </div>
        <g:layoutBody />
    </body>
</html>